package com.wxm.common.file.core.enm;

/**
 * <p>
 *      文件类型枚举
 * </p>
 *
 * @author: wxm
 * @Date: 2022/1/13
 */
public enum FileTypeEnum {
    IMG("img",new String[]{".png",".jpg","jpeg",".gif"}),
    TXT("txt",new String[]{".txt"}),
    WORD("word",new String[]{".doc",".docx"}),
    EXCEL("excel",new String[]{".xls",".xlsx",".xlsm"}),
    ;

    private String type;
    private String[] suffix;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String[] getSuffix() {
        return suffix;
    }

    public void setSuffix(String[] suffix) {
        this.suffix = suffix;
    }

    FileTypeEnum(String type, String[] suffix){
        this.type = type;
        this.suffix = suffix;
    }
}
